package day11.util;import java.util.concurrent.*;/** * @Auther: sky * @Date: 2019/3/15 22:57 * @Description: */public class SimpleThreadPools {    //FixedThreadPool被称为可重用固定线程数的线程池    public static ExecutorService newFixedThreadPool(int nThreads) {        return new ThreadPoolExecutor(nThreads, nThreads,                0L, TimeUnit.MILLISECONDS,                new LinkedBlockingQueue<Runnable>());    }}